
import { Entity, PrimaryUuid, MemberId, CardLogId, CreateDate, DateTime, Remark, Code, CouponUseTo, CouponLogStatus, CardId, CardCanUseTo, AddressDetail } from '@sker/core'

@Entity({ name: 'card_use_log', comment: '会员卡使用记录' })
export class CardUserLog {
    @PrimaryUuid({
        primaryKeyConstraintName: "PK_CARD_USER_LOG_ID"
    })
    id!: string;

    @MemberId({})
    member_id!: string;

    @CardId()
    card_id: string;

    @CardLogId()
    log_id!: string;

    @AddressDetail({ nullable: true, default: {}, comment: '收货地址' })
    address_detail: any;

    @CouponLogStatus({ comment: '状态' })
    status: string;

    @Remark()
    remark: string;

    @CardCanUseTo({ comment: '使用场景' })
    use_to: string;

    @DateTime({ comment: '使用时间' })
    use_date: Date;
}
